import { IMessageHandle, IMessageStruct } from './msgHandleMg';
import { ObjectCopier } from './../objectCopier';

export class UpdateTableStatusMessageHandle implements IMessageHandle {
    get MessageName() { return "update-table-status"; }
    get HandleName() { return "UpdateTableStatusMessageHandle"; }
    OnReceived(sender, args: IMessageStruct) {
        let updateInfo: any = ObjectCopier.Copy(args.body);
        this.OnMessage && this.OnMessage(updateInfo);
    }

    OnMessage: (updateInfo) => void;
} 